﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Admin.master" AutoEventWireup="true" CodeBehind="DeathContribution.aspx.cs" Inherits="Legazpi.Payroll.Web.Admin.Payroll.DeathContribution" %>
<asp:Content ID="Content3" ContentPlaceHolderID="leftContent" runat="server">
    <div class="grid_9">                                    
        <%if(IsSuccess) {%>
            <span class="notification n-success"><%=NotifyText %></span>                                                
        <%} %>  

        <div class="bottom-spacing">                
            <!-- Table records filtering -->
            Select Designated Payroll Period: 
            <asp:DropDownList runat="server" ID="PayrollPeriodDdl" CssClass="input-short" 
                AutoPostBack="True" 
                onselectedindexchanged="PayrollPeriodDdl_SelectedIndexChanged">
            </asp:DropDownList>
                    
        </div>                 
    </div>   
            <div class="grid_3">                                
                <div class="module">
                     <h2><span>New Record Entry</span></h2>
                        
                     <div class="module-body">
                        
                            <p>
                                <label>Description:</label>
                                <asp:TextBox ID="DescTxt" runat="server" CssClass="input-long"></asp:TextBox>    
                                <asp:HiddenField runat="server" ID="ContributionId" Value="0" />                            
                            </p>
                            <p>
                                <label>Amount:</label>
                                <asp:TextBox ID="AmountTxt" runat="server" CssClass="input-long"></asp:TextBox>                                
                            </p>
                            <fieldset>
                                <asp:Button id="SubmitBtn" runat="server" Text="Submit" CssClass="submit-green" 
                                    onclick="SubmitBtn_Click" />                                                                                                            
                                <asp:Button id="CancelBtn" runat="server" Text="Cancel" CssClass="submit-gray" 
                                    onclick="CancelBtn_Click" />                                                                                                            
                            </fieldset>
                        
                        
                     </div> <!-- End .module-body -->
                </div> <!-- End .module -->
                <div style="clear:both;"></div>
            </div>
            <div class="grid_6">      
   
                    <div class="module">
                         <h2><span>Contribution Table</span></h2>
                     
                         <div class="module-body">                                                         
                         <asp:Repeater ID="repeater" runat="server" OnItemCommand="repeater_ItemCommand">
                            <HeaderTemplate>
                                <table width="100%" border="0" class="tablesorter">
                                    <thead>
                                        <th>Id</th>                        
                                        <th>Description</th>
                                        <th>Amount</th>                                        
                                        <th width="15%"></th>
                                    </thead>
                                    <tbody>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="odd">                                    
                                    <td><%# Eval("Id")%></td>                                        
                                    <td><%# Eval("Description")%></td>                                    
                                    <td><%# Eval("Amount")%></td>                                                                        
                                    <td>                                        
                                        <asp:ImageButton ID="SaveLinkBtn" runat="server" ImageUrl="/images/pencil.gif" Width="16" Height="16" AlternateText="save" CommandName="update" CommandArgument=<%# Eval("Id")%> />
                                        <asp:ImageButton ID="DeleteLinkBtn" runat="server" ImageUrl="/images/bin.gif" Width="16" Height="16" AlternateText="delete" CommandName="delete"  CommandArgument=<%# Eval("Id")%> OnClientClick="return confirm('Confirm Delete?');" />                                        
                                    </td>
                                </tr>                            
                            </ItemTemplate>
                            <AlternatingItemTemplate>
                                <tr class="even">                                    
                                    <td><%# Eval("Id")%></td>                                        
                                    <td><%# Eval("Description")%></td>                                    
                                    <td><%# Eval("Amount")%></td>                                                                        
                                    <td>                                        
                                        <asp:ImageButton ID="SaveLinkBtn" runat="server" ImageUrl="/images/pencil.gif" Width="16" Height="16" AlternateText="save" CommandName="update" CommandArgument=<%# Eval("Id")%> />
                                        <asp:ImageButton ID="DeleteLinkBtn" runat="server" ImageUrl="/images/bin.gif" Width="16" Height="16" AlternateText="delete" CommandName="delete"  CommandArgument=<%# Eval("Id")%> OnClientClick="return confirm('Confirm Delete?');" />                                        
                                    </td>
                                </tr>                            
                            </AlternatingItemTemplate>
                            <FooterTemplate>
                                    </tbody>
                                </table>
                            </FooterTemplate>
                         </asp:Repeater>                            
                                                   
                         </div> <!-- End .module-body -->

                    </div>  <!-- End .module -->        		   
                                                            
            </div>
</asp:Content>
